package com.translate.web.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 
 * @author 111
 *
 */
@Component
@Configurable
@ConfigurationProperties(prefix = "remote")
public class RemoteApi {
	private String url;
	
	private String origin;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUserInfoURL() {
		return url.concat("User/getUserById");
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}
}
